import java.util.Scanner;

/**
 * 取近似值
 * Created by JiaJia on 2019/6/19 0019.
 */
public class HuaWei007 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        while (scanner.hasNext()){
            float num=scanner.nextFloat();
            System.out.println((int)(num*10+5)/10);
            System.out.println(Math.round(num));
        }
        scanner.close();
    }
}